import request from'../../static/js/request.js'

function createActivity(params){
	return request.post("save/activity",params)
}
function getActivityList(params,urlParames){
	return request.post("get/activity/list",params,{params:urlParames})
}
function getActivityInfo(id){
	return request.get(`get/activity/${id}/info`)
}
function editActivity(params){
		return request.post(`change/activity`,params)
}
function exportActivityList(){
	return request.get(`export/activity/list`)
}
export const activityService = {  
    createActivity: createActivity,
    getActivityList: getActivityList,
    getActivityInfo: getActivityInfo,
    editActivity: editActivity,
    exportActivityList: exportActivityList
} 